<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="${skin}/v1.min.css?v=${v}" />
<link rel="stylesheet" type="text/css" href="${skin}/index.css?v=${v}" />
<script type="text/javascript"
	src="${path }/js/jquery1.10.2.min.js?v=${v}"></script>
<script type="text/javascript" src="${path }/js/v1.min.js?v=${v}"></script>
<title>${configUtil.sitename}-已投项目</title>
</head>

<body>
	<!-- head -->
	<c:import url="../../include/top.jsp"></c:import>

	<div class="wrap">
		<div class="blank"></div>
		<div class="user_nav f_l mr5">
			<c:import url="../left.jsp"></c:import>
		</div>
		<div class="user_right f_l">
			<link rel="stylesheet" type="text/css"
				href="//assets5.ncfstatic.com/v1/css/user_web2.css?v=201509301541" />
			<div class="user_right">
				<div class="user_right_box mb15 user_right_box_v2">
					<div class="user_title">
						<h1>
							<i
								class="ico_xiangmu"></i>已投项目
						</h1>
					</div>

					<form id="search" action='/account/load' method="get">
						<div class="screening clearfix">
							<div class="select_box" data-name="status">
								<div class="j_select"></div>
								<ul class="select_ul none j_selectContent">
									<li data-value="1">投标中</li>
									<li data-value="2">投标成功</li>
									<li data-value="4">回款中</li>
									<li data-value="5">已回款</li>
								</ul>
							</div>
							<input type="hidden" name="type" value="" />
							<div class="sel_time">
								<span>时间</span> <input type="text" class="time_box"
									id="dateInput1" name="date_start" value=""><span
									class="pl10">-</span><input type="text" class="time_box"
									id="dateInput2" name="date_end" value="">
							</div>
							<input type="submit" value="筛选" class="button_shaixian fr">
						</div>
					</form>

					<style>
.yqjilu thead tr {
	border-bottom: 1px solid #e5e5e5;
}
</style>

					<table class="yqjilu" height="226">
						<colgroup>
							<col width="100">
							<col width="150">
							<col width="100">
							<col width="120">
							<col width="80">
						</colgroup>
						<thead>
							<tr>
								<th>时间</th>
								<td>类型</td>
								<td>解冻/冻结(元)</td>
								<td>资金变动(元)</td>
								<td>备注</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<th>100万元</th>
								<td>0.1%</td>
								<td>12个月</td>
								<td>1000000*0.1%</td>
								<td>1000元</td>
							</tr>
							<tr class="tr_bg">
								<th>100万元</th>
								<td>0.1%</td>
								<td>9个月</td>
								<td>1000000*0.1%/12*9</td>
								<td>750元</td>
							</tr>
							<tr>
								<th>100万元</th>
								<td>0.1%</td>
								<td>6个月</td>
								<td>1000000*0.1%/12*6</td>
								<td>500元</td>
							</tr>
							<tr class="tr_bg">
								<th>100万元</th>
								<td>0.1%</td>
								<td>3个月</td>
								<td>1000000*0.1%/12*3</td>
								<td><p>250元</p></td>
							</tr>
						</tbody>
					</table>

				</div>



				<div class="main">
					<div class="empty-box">没有投资项目</div>
				</div>


			</div>


			<!--申请赎回内容-->
			<div class="redemption">
				<div class="redemption_time">
					<h3 class="f16" id="_js_title">今日申请赎回，2015-02-12到账</h3>
					<h4 class="color-blue1 f12" id="_js_is_holiday"></h4>
				</div>
				<div class="redemption_con">
					<p>
						项目名称<strong>：<span id="_js_name">利滚利001号</span></strong>
					</p>
					<p>
						投资金额：<span id="_js_money">1000,00.00元</span>
					</p>
					<p>
						赎回本息：<span id="_js_sum" class="color-yellow1">1000,00.00元</span>
					</p>
					<p style="color: #999; padding-top: 0">赎回不可撤销</p>
				</div>
			</div>
			<!--申请赎回内容 end-->
			<script>
				function clickopen(id) {
					var url = '/account/contshow?tag=show&ajax=1&id=' + id;
					$.weeboxs.open(url, {
						boxid : null,
						contentType : 'iframe',
						showButton : true,
						showCancel : false,
						showOk : false,
						title : '合同详情',
						width : 750,
						height : 550,
						type : 'wee',
						onclose : function() {
							null
						}
					});
				}
				$(".j_shuhui")
						.click(
								function() {
									var id = $(this).attr('data-id');
									if (!id) {
										return false;
									}
									var url = '/account/loadshow?id=' + id;
									$.getJSON(url, function(data) {
										if (!data.status) {
											alert(data.info);
											return false;
										}
										$("#_js_name").html(data.info.name);
										$("#_js_money").html(data.info.money);
										$("#_js_sum").html(data.info.sum);
										$("#_js_title").html(data.info.title);
										if (data.info.is_holiday) {
											$("#_js_is_holiday").html(
													data.info.is_holiday);
										} else {
											$("#_js_is_holiday").hide();
										}
										$.weeboxs.open('.redemption', {
											contentType : 'selector',
											boxclass : "shuhui_box",
											onok : function() {
												redeem(id, this);
											},
											showButton : true,
											okBtnName : '确认赎回',
											showCancel : true,
											showOk : true,
											title : '赎回详情',
											height : 220,
											width : 450,
											type : 'wee',
											onclose : function() {
												null
											}
										});
									});

									function redeem(id, thiz) {
										var url = '/account/redeem';
										$(thiz).addClass('but-disabled').attr(
												"disabled", "disabled").css({
											"cursor" : "default"
										});
										$
												.post(
														url,
														{
															id : id
														},
														function(rs) {
															if (rs.status == 0) {
																alert('正在放款中，请稍后重试！');
																$(thiz)
																		.removeClass(
																				'but-disabled')
																		.removeAttr(
																				"disabled",
																				"disabled")
																		.css(
																				{
																					"cursor" : "pointer"
																				});
															} else {
																window.location.href = '/account/success/?id='
																		+ id
																		+ '&gS='
																		+ rs.jump.gS;
															}
														});
									}
								});
			</script>
		</div>

		<div class="blank"></div>
	</div>

	<c:import url="../../include/foot.jsp"></c:import>
</body>
</html>
